package com.rockchip.rkmediacodecdemo.rtsp;

import android.util.Log;

import java.io.IOException;
import java.io.InputStream;

public class MyRTPManager {

    private InputStream mInputStream;

    public MyRTPManager(InputStream inputStream) {
        mInputStream = inputStream;
    }

    public void run() {
        byte[] buf = new byte[4096];
        try {
            Log.v("TTT", "before read");
            int len = mInputStream.read(buf);
            Log.v("TTT", "after read len="+len);
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
